var rule = {
    title: '网飞猫',
    host: 'https://www.ncat2.app',
    url: '/channel/fyclass.html',
    searchUrl: '/search?k=**&page=fypage',
    searchable: 2,//是否启用全局搜索,
    quickSearch: 0,//是否启用快速搜索,
    filterable: 0,//是否启用分类筛选,
    headers: {
                'User-Agent':'MOBILE_UA', // "Cookie":"searchneed=ok"
            },
    编码: 'utf-8',
    timeout: 5000,
    class_name:'电影&连续剧&动漫&综艺记录',
  class_url:'1&2&3&4&5',
  tab_exclude: '今日更新|专题列表|排行榜|留言求片|app',
  图片替换: 'https://www.ncat2.app=>https://vres.bqlpk.cn',
  预处理: $js.toString(() => {
        let html = request(rule.host);
        let scripts = pdfa(html, 'script');
        let img_script = scripts.find(it => pdfh(it, 'script&&src').includes('rdul.js'));
        if (img_script) {
            let img_url = img_script.match(/src="(.*?)"/)[1];
            //console.log(img_url);
            let img_html = request(img_url);
            let img_host = img_html.match(/'(.*?)'/)[1];
            log(img_host);
            rule.图片替换 = rule.host + '=>' + img_host;
        }
    }),
    play_parse: true,
    lazy: `js:
            if(/\\.(m3u8|mp4)/.test(input)){
                input = {parse:0,url:input}
            }else{
                if(rule.parse_url.startsWith('json:')){
                    let purl = rule.parse_url.replace('json:','')+input;
                    let html = request(purl);
                    input = {parse:0,url:JSON.parse(html).url}
                }else{
                    input= rule.parse_url+input; 
                }
            `,
    limit: 6,
    double: true,
    推荐: '*',
    一级: '.module-item;img&&alt;img&&data-original;span&&Text;a&&href',
    二级: {
        "title": ".col-xs-1&&h1&&Text",
        "img": "img&&data-src",
        "desc": ".img-list&&li:eq(2)&&Text;.img-list&&li:eq(3)&&Text;.img-list&&li:eq(4)&&Text;.img-list&&li:eq(5)&&Text",
        "content": ".desc&&Text",
        "tabs": ".swiper-slide.source-swiper-slide--i",
        "lists": ".episode-list:eq(#id)&&a"
            },
            搜索: '.search-result-list&&a;.title:eq(1)&&Text;img:eq(-1)&&data-original;.search-result-item-header&&Text;a&&href;.desc&&Text'
            }